
<div class='content'>
    <div class="row-fluid">
        <div class="dialog">
            <div class="block">
                <p class="block-heading" style="text-align: center;">用户添加
                <?php echo Yii::app()->user->getFlash('login_user_info'); ?>
                </p>
                <div class="block-body">
                    <form class="form-horizontal" method='post' name='login_form' >
                        <div class="control-group">
                          <label class="control-label" for="inputEmail">用户名</label>
                          <div class="controls">
                              <select name='user_id'>
                                  <?php
                                    foreach($admin_name as $v)
                                    {
                                        if($v['username']!='admin')
                                            echo "<option value=>{$v['username']}</option>";
                                    }
                                  ?>
                              </select>
                          </div>
                        </div>
                        <div class="control-group">
                          <label class="control-label" for="inputPassword">角色名</label>
                          <div class="controls">
                              <select name='role_id'>
                                <?php
                                    foreach($admin_role as $vs)
                                    {
                                       echo "<option value=>{$vs['name']}</option>";
                                    }
                                  ?>
                              </select>
                          </div>
                        </div>
                        <div class="control-group">
                          <div class="controls">
                            <button type="submit" class="btn">绑定</button>
                          </div>
                        </div>
                      </form>
                </div>
            </div>
            <!--<p><a href="reset-password.html">Forgot your password?</a></p>-->
        </div>
    </div>
</div>